From: Ting-Wei Lan Date: Sat, 26 Sep 2015 10:32:37 +0000 (+0800) Subject: build: Fix build with clang -Werror X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~965 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1de288c5bb2d8565cc38c18ad88a200b7cfba9d8;p=gnome-shell.git build: Fix build with clang -Werror https://bugzilla.gnome.org/show_bug.cgi?id=755659 --- diff --git a/src/gtkactionmuxer.c b/src/gtkactionmuxer.c index 9329a94c6..1cdf2940a 100644 --- a/src/gtkactionmuxer.c +++ b/src/gtkactionmuxer.c @@ -139,7 +139,7 @@ gtk_action_muxer_list_actions (GActionGroup *action_group) actions); } - return (gchar **) g_array_free (actions, FALSE); + return (gchar **)(void *) g_array_free (actions, FALSE); } static Group * diff --git a/src/shell-glsl-quad.c b/src/shell-glsl-quad.c index b6c591ad3..ba62a98f5 100644 --- a/src/shell-glsl-quad.c +++ b/src/shell-glsl-quad.c @@ -84,12 +84,12 @@ shell_glsl_quad_add_glsl_snippet (ShellGLSLQuad *quad, if (is_replace) { - snippet = cogl_snippet_new (hook, declarations, NULL); + snippet = cogl_snippet_new ((CoglSnippetHook)hook, declarations, NULL); cogl_snippet_set_replace (snippet, code); } else { - snippet = cogl_snippet_new (hook, declarations, code); + snippet = cogl_snippet_new ((CoglSnippetHook)hook, declarations, code); } if (hook == SHELL_SNIPPET_HOOK_VERTEX ||